<?php
/**
 * Created by PhpStorm.
 * User: LYQ
 * Date: 2019/8/26
 * Time: 18:57
 */

namespace app\index_admin\Validate;


use think\Validate;

class Vregist extends Validate
{
    protected $rule = [
        'password' => 'require|min:6',
        'email' => 'email',
        'mobile' => 'require|max:11|/^1[3-8]{1}[0-9]{9}$/',
    ];
    protected $message = [
        'password.require' => '密码不能为空',
        'password.min' => '密码不得少于6位',
        'mobile' => '请输入手机号码|手机号码最多不能超过11个字符|手机号码格式不正确'
    ];
}